package com.lzh.designpatterns.factorymethod;

import java.math.BigDecimal;

/**
 * @author liuzhihao
 * @create 2021-12-26 20:12
 *
 * 工厂的实现类
 */
public class NumberFactoryImpl implements NumberFactory {
    @Override
    public Number parse(String s) {
        return new BigDecimal(s);
    }
}
